from django.db import models

# Create your models here.


class MXgoods(models.Model):
    name = models.CharField(max_length=50,verbose_name='商品名称')
    des = models.CharField(max_length=255,verbose_name='商品描述')
    ori = models.FloatField(verbose_name='参考价')
    dis = models.FloatField(verbose_name='售价')
    time = models.CharField(max_length=100,verbose_name='到货时间')
    buy = models.CharField(max_length=100,verbose_name='立即购买')
    bags = models.CharField(max_length=100,verbose_name='加入购物袋')
    img = models.CharField(max_length=100,verbose_name='商品图片')
    storenums = models.IntegerField(verbose_name='库存量')
    productnum = models.IntegerField(verbose_name='销售量')


    class Meta:
        db_table = 'goods_info'


class MXminpicture(models.Model):
    gid = models.IntegerField(verbose_name='商品id')
    img = models.CharField(max_length=255,verbose_name='图片路径')

    class Meta:
        db_table = 'mx_minpicture'